package com.map.recreation.co.coloradorecreationmap;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by Matt on 9/11/2014.
 */
public class Locations implements LocationListener {
    private static final String TAG = "Locations";

    private Location lastKnownGpsLocation;
    private Location lastKnownNetworkLocation;

    @Override
    public void onLocationChanged(Location location) {
        Log.d(TAG, "onLocationChanged()...");
    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {

    }

    @Override
    public void onProviderEnabled(String provider) {

    }

    @Override
    public void onProviderDisabled(String provider) {

    }

    public void setLastKnownGpsLocation(Location lastKnownGpsLocation) {
        this.lastKnownGpsLocation = lastKnownGpsLocation;
        Log.d(TAG, "Last known gps loc: " + this.lastKnownGpsLocation);
    }

    public void setLastKnownNetworkLocation(Location lastKnownNetworkLocation) {
        this.lastKnownNetworkLocation = lastKnownNetworkLocation;
        Log.d(TAG, "Last known network loc: " + this.lastKnownNetworkLocation);
    }
}
